package com.jspxcms.core.domain;

import javax.persistence.*;

/**
 * Created by yuanyue on 14-8-16.
 */

@Entity
@Table(name = "cms_area")
public class Area  implements java.io.Serializable{

    private Integer id;
    private Integer pid;
    private String name;

    @Id
    @Column(name = "region_id", nullable = false)

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "parent_id", nullable = false)

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Column(name = "region_name", nullable = false)

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
